package com.zsc.yygh.order.api;

import com.zsc.yygh.common.result.Result;
import com.zsc.yygh.order.service.RefundInfoService;
import com.zsc.yygh.vo.order.OrderRefundVo;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;

@RestController
@RequestMapping("/api/order/refundInfo")
@Api(tags = "用户退款")
public class RefundApiController {

    @Autowired
    private RefundInfoService refundInfoService;

    @ApiOperation(value = "获取退款信息")
    @GetMapping("/getRefundInfo")
    public Result getRefundInfo() {
        List<OrderRefundVo> OrderRefundVoList = refundInfoService.getRefundInfo();
        return Result.ok(OrderRefundVoList);
    }

}
